<!DOCTYPE html>
<html>
<head>
  <style type="text/css">
    body { background-color: black; }
    .container { width: %dpx; height: %dpx; line-height: %dpx; text-align: center; }
    .resize_fit_center { max-width:100%%; max-height:100%%; vertical-align: middle; }
  </style>
</head>
<body>
<div class="container">
  <img class="resize_fit_center" src="%s" />
</div>
</body>
</html>
